home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 14 / Hot Mix 14.iso / HTML / vendors / finesse / examples / sh / hello_name2 < prev    next >
Text File  |  1996-06-27  |  726b  |  31 lines

  1. #! /bin/sh
  2. # FINESSEAPPLICATIONKEY sNOFTZxjLwPT^
  3.  
  4. . ${FINESSEPATH-/usr/local/finesse}/fsshinit
  5. winnam=namewindow
  6. windef="                                          
  7. FsWindow     -btype oxa -name $winnam;
  8. FsLabel      -label 'Please enter your name:';
  9. FsText       -label Name: -var name;
  10. FsSeparator;"                                   # (0)
  11.  
  12. Fsopen
  13.  
  14. Fsdisplay -w "$windef" -m "Hello!"              # (1) 
  15. if [ "$fsbutton" != "o" ] ; then
  16. Fsclose; exit
  17. fi
  18.  
  19. while [ -z "$name" ]                            # (2)
  20. do
  21. Fsdisplay -n $winnam -m "Name is missing..."    # (3)
  22. if [ "$fsbutton" != "o" ] ; then
  23. Fsclose; exit
  24. fi
  25. done
  26.  
  27. Fsdisplay -w "FsWindow; FsPushButton -label Goodbye;"\
  28.           -m "Hello $name"       # (4)
  29.  
  30. Fsclose
  31.